#*******************************************************************
#* @ All Rights Reserved Copyright (C) 2014 broada,Co.,Ltd.        *
#*                                                                 *
#*  NOTE      = MSSQL协议分析
#*  DATE      = 
#*******************************************************************
TOP_DIR = ../


#include         $(TOP_DIR)/libcomm/Makefile_in_libcomm
CC=gcc

INCLUDES=  -I. -I$(TOP_DIR)/comm/
LIBS 	= -lzlog -lpthread  
CFLAGS 	= -Wall -g -fPIC 
#-D_GNU_SOURCE -DFRLINUX4	对应redhat4

CFLAGS          += $(CFLAGS_EXT)
LIBS            += $(LIBS_EXT)

MK_LIB_PATH    = ../
TARGET_LIB	   = l7default_1.0.so

SRC_LIB  = $(wildcard *.c)
OBJS_LIB = $(patsubst %.c, %.o, $(SRC_LIB))

all: $(TARGET_LIB)

.c.o:$(OBJS_LIB)
	$(CC) -c $(CFLAGS) $(INCLUDES)  $<

$(TARGET_LIB): $(OBJS_LIB)
	$(CC) -shared -fPIC  $^  -o $@ $(INCLUDES) $(LIBS)


install:
	@rm -f $(MK_LIB_PATH)/$(TARGET_LIB)
	cp $(TARGET_LIB) $(MK_LIB_PATH)/$(TARGET_LIB) 

uninstall:
	rm -rf $(MK_LIB_PATH)/$(TARGET_LIB) 

clean:
	rm -f *.o $(TARGET_LIB)

#EOF

